import request from '../utils/request'


/**
 * 登录
 */
export const loginApi = ({ phone, password }) => {
  return request({
    url: '/admin/sys_user/login',
    method: 'post',
    data: {
      phoneNumber: phone,
      password
    }
  })
}


/**
 * 获取用户信息
 */
export const getUserInfoApi = () => {
  return request({
    url: '/admin/sys_user/login_info/get',
    method: 'get'
  })
}
